﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel;

namespace LFractal
{
    public class LSystemEntity
    {
        /// <summary>
        /// This is the associated file where the entity definition will be saved. If kept blank, it means the definition
        /// is not yet saved.
        /// </summary>
        private string filePath = "";
        private string name = "";
        private string axiom = "";
        private BindingList<LSystemProductionRule> productionRules = new BindingList<LSystemProductionRule>();

        public BindingList<LSystemProductionRule> ProductionRules
        {
            get { return productionRules; }
        }

        public string Axiom
        {
            get { return axiom; }
            set { axiom = value; }
        }

        public string Name
        {
            get { return name; }
            set { name = value; }
        }



        public LSystemEntity()
        {

        }

        public LSystemEntity(string sDefinitionFilePath)
        {
            filePath = sDefinitionFilePath;
        }
    }
}
